<?php

require_once(dirname(__FILE__) . '/UpsAPI.php');

$tracking_number = "1ZV5665Y0462170358";
$tracking = new UpsAPI_Tracking($tracking_number);

$xml = $tracking->buildRequest();

// returns XML
$response = $tracking->sendRequest($xml, true);

// echo $response;

$unserializer = new XML_Unserializer(array('returnResult' => true));
$ret = $unserializer->unserialize($response);
print_r($ret);

?>